<?php

/**
 * 钱包
 *
 * Created by PhpStorm.
 * User: evan
 * Date: 2016/10/14
 * Time: 下午2:56
 */
class Wallet extends MY_Api_Controller
{
    public function my()
    {
        $uid      = $this->uid;
        $currency = (int)$this->input->get_post('currency');


        $this->load->service('finance/service_finance_wallet');
        $data = $this->service_finance_wallet->my($uid, $currency);


        $this->json_output($data['data'], $data['status']);
    }


    /**
     * 我的余额
     */
    public function my_balance()
    {
        $uid      = $this->uid;


        $this->load->service('finance/service_finance_wallet');
        $data = $this->service_finance_wallet->my_balance($uid);


        $this->json_output($data['data'], $data['status']);
    }
}